﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using DAL.Help;

namespace DAL.Classes
{
    public class ChuDe
    {
        #region khai bao cac thuoc tinh anh xa
        public int MaChuDe { get; set; }
        public string TenChuDe { get; set; }
        public string MoTa { get; set; }
        public int MaMenu { get; set; }
        public ChuDe() { }
        #endregion

        #region Cac phuong thuc lay du lieu
        public static List<ChuDe> LayChuDeTheoMenu(string MaMenu)
        {
            try
            {
                return CBO.FillCollection<ChuDe>(DataProvider.Instance.ExecuteReader("ChuDe_MaMenu", ConvertType.ToInt32(MaMenu)));
            }
            catch
            {
                return null;
            }
        }
        #endregion
    }
}
